<?php

class Chat extends CI_Controller {
	
	public function __construct() {
		parent::__construct();
	}
	
	public function index(){
		$this->load->model('Nutritionist','n');
		$this->n->logged();
		
		$data['title'] = 'Chat'; // Capitalize the first letter
		$data['email_n'] = $this->session->userdata('email_n');

		$this->load->view('area_admin/chat_view', $data);
	}
	
	public function talk($id_patient){
		$this->load->model('Nutritionist','n');
		$this->n->logged();
		
		$data['title'] = 'Chat com '.$id_patient; // Capitalize the first letter
		$data['id_nutritionist'] = $this->session->userdata('id_nutritionist');
		$data['id_patient'] = $id_patient;
		$this->load->view('area_admin/chat_talk_view', $data);
	}
}
/* End of file chat.php */
/* Location: ./application/controllers/area_admin/chat.php */